import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:waypoints',
      order: -1,
      title: '网络管理',
    },
    name: 'Networks',
    path: '/networks',
    children: [
      {
        name: 'Devices',
        path: '/devices',
        component: () => import('#/views/networks/devices/index.vue'),
        meta: {
          affixTab: true,
          icon: 'lucide:router',
          title: '设备管理',
        },
      },
      {
        name: 'Topology',
        path: '/topology',
        component: () => import('#/views/networks/topology/index.vue'),
        meta: {
          affixTab: true,
          icon: 'lucide:share-2',
          title: '网络拓扑',
        },
      },
    ],
  },
];

export default routes;
